package com.vhall.component.entity.sign.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author shenqing
 * @date 2021/4/24 12:56
 */
@Data
public class SignRecordsToVpsReqVO implements Serializable {

    private static final long serialVersionUID = 7002435402349298147L;

    /**
     * VSS临时令牌
     */
    @ParamName("vss_token")
    private String vssToken;
    /**
     * paas房间id
     */
    @ParamName("room_id")
    @Pattern(regexp = "[0-9a-zA-Z_]{1,32}", message = "参数异常")
    @NotBlank(message = "不能为空")
    private String roomId;
    /**
     * 开始游标
     */
    @ParamName("offset")
    private Integer offset;
    /**
     * 每次查询取回的条数
     */
    @ParamName("limit")
    private Integer limit;
    /**
     * 排序类型：
     * asc 正序
     * desc 倒序
     */
    @ParamName("sort_type")
    private String sortType;
    /**
     * all：当前用户发起全部签到
     */
    @ParamName("type")
    private String type;
    /**
     * paas房间id
     */
    @ParamName("sign_id")
    @NotNull(message = "不能为空")
    private Long signId;
}
